package com.dd.logistics.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("inventory")
public class Inventory implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long supplierId;
    private Long productId;
    private Integer quantity;
    private String location;
    private Integer warningThreshold;
    private Date createTime;
    private Date updateTime;
    
    // 关联字段，不映射到数据库
    @TableField(exist = false)
    private String supplierName;
    @TableField(exist = false)
    private String productName;
    @TableField(exist = false)
    private String productCode;
} 